﻿using System.Web.Mvc;

namespace webcspa.Controllers
{
    public class SecurePageController : Controller
    {
        [HttpGet]
        public ActionResult Run()
        {
            var loginCoockie = HttpContext.Request.Cookies["user"];
            if (loginCoockie != null && !string.IsNullOrEmpty(loginCoockie.Value))
                return View("SecurePageView");
            return Redirect("/Static/Pages/Forbidden.htm");
        }
    }
}
